package com.health.mapp.impl;

import org.apache.commons.lang3.StringUtils;

import com.health.db.service.user.IVoiceOnDemondListService;
import com.health.mapp.bean.Header;
import com.health.mapp.bean.UpdateListenAmountReq;
import com.health.mapp.bean.UpdateListenAmountResp;
import com.health.mapp.utils.Response;
import com.health.mapp.utils.ResultCode;
/**
 * 会员退出登录
 * @author bobo
 *
 */
public class UpdateListenAmountImpl implements ActionInterface {

	private IVoiceOnDemondListService voiceOnDemondListService;

	@Override
	public Response execute(Header header, Object reqBean) throws Exception {
	 
		
		UpdateListenAmountReq req = (UpdateListenAmountReq) reqBean;
		UpdateListenAmountResp _resp = new UpdateListenAmountResp();
		
		
	      //设置分页查询
        if(StringUtils.isNotBlank(req.getRecid())){
        	voiceOnDemondListService.updateListenAmount(Long.valueOf(req.getRecid()));
		}else{
			_resp.setErrorCode(ResultCode.OPERATION_LAKE_PARAMETER_ERROR);
			_resp.setErrorMsg(ResultCode.OPERATION_LAKE_PARAMETER_ERROR_NOTE);
			return _resp;
		}
		
		return _resp;
	}

	public IVoiceOnDemondListService getVoiceOnDemondListService() {
		return voiceOnDemondListService;
	}

	public void setVoiceOnDemondListService(
			IVoiceOnDemondListService voiceOnDemondListService) {
		this.voiceOnDemondListService = voiceOnDemondListService;
	}
	
}
